package com.blog.dao;

import com.blog.model.Category;
import com.blog.utils.MyMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper extends MyMapper <Category>{
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    Category selectById(String id);

    List<Category> selectAll();

    int updateByPrimaryKey(Category record);

    List<Category> findAll();
}